<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		<script src="js/jquery-3.7.0.min.js"></script>
		<style>
			#d1{
				border: 1px solid red;
				width: 300px;
				height: 200px;
				padding: 30px;
			}
			#p1{
				border: 1px solid green;
				width: 300px;
				height: 200px;
			}
		</style>
		
		<script type="text/javascript">
			$(function(){
				$("#btn1").click(function (){
					alert('btn1')
				})
				$("#btn2").dblclick(function (e){
					alert(e.pageX+","+e.pageY)
					alert(e.target.nodeName)
				})
				$("#d1 #p1 #btn3").click(function(e){
					alert(this.id)
					e.stopPropagation()
				})
				
			});
		</script>
	</head>
	<body>
		<p>
			<input type="button" value="按钮1" id="btn1">
			<input type="button" value="按钮2" id="btn2">
		</p>
		<div id="d1">
			<p id="p1">
				<input type="button" value="按钮3" id="btn3">
			</p>
		</div>
	</body>
</html>